-- phpMyAdmin SQL Dump
-- version 4.1.6
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 08 Kwi 2014, 18:26
-- Server version: 5.5.36
-- PHP Version: 5.4.25

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Database: `users`
--

-- --------------------------------------------------------

--
-- Struktura tabeli dla tabeli `roles`
--

CREATE TABLE IF NOT EXISTS `roles` (
  `ID_ROLE` int(100) NOT NULL,
  `NAME` text NOT NULL,
  PRIMARY KEY (`ID_ROLE`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Zrzut danych tabeli `roles`
--

INSERT INTO `roles` (`ID_ROLE`, `NAME`) VALUES
(1, 'Admin'),
(2, 'EDITOR'),
(3, 'SUB-ADMIN'),
(4, 'USER');

-- --------------------------------------------------------

--
-- Struktura tabeli dla tabeli `users`
--

CREATE TABLE IF NOT EXISTS `users` (
  `ID_USER` int(255) NOT NULL AUTO_INCREMENT,
  `ID_ROLE` int(100) NOT NULL,
  `LOGIN` text NOT NULL,
  `PASSWORD` text NOT NULL,
  `E-MAIL` text NOT NULL,
  `E-MAIL ACTIVE` tinyint(1) NOT NULL,
  `ANSWER` text NOT NULL,
  PRIMARY KEY (`ID_USER`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

--
-- Zrzut danych tabeli `users`
--

INSERT INTO `users` (`ID_USER`, `ID_ROLE`, `LOGIN`, `PASSWORD`, `E-MAIL`, `E-MAIL ACTIVE`, `ANSWER`) VALUES
(1, 1, 'Kamil', 'kamil123', 'kamilsoltysik@gmail.com', 1, 'Azor'),
(2, 4, 'Tomasz', 'tomasz123', 'tomaszsuwala@toniejstpolskiklub.pl', 0, 'Legia Warszawa');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
